package com.yunpeng.aidevice.biz.service;

import com.yunpeng.common.dto.Result;
import com.yunpeng.aidevice.common.dto.save.MailSenderSaveDTO;
import com.yunpeng.aidevice.common.vo.NoticeMailConfigVO;

/**
 * MerchantNoticeMailBizService
 *
 * @author : Moore(hemw)
 * @date : 2020-05-04
 */
public interface IMerchantNoticeMailBizService {
    /**
     * 获取默认邮箱配置
     * @param tenantCode
     * @return
     */
    Result<NoticeMailConfigVO> getDefaultMailConfig(String tenantCode);

    /**
     * 获取商户邮箱配置
     * @param merchantCode
     * @param tenantCode
     * @return
     */
    Result<NoticeMailConfigVO> getMerchantMailConfig(String merchantCode, String tenantCode);

    /**
     * 新增邮箱配置
     *
     * @param mailSenderSaveDTO
     * @param operatorCode
     * @return
     */
    Result<Void> addNewConfig(MailSenderSaveDTO mailSenderSaveDTO, String operatorCode);

    /**
     * 更新邮箱配置
     *
     * @param mailSenderSaveDTO
     * @param operatorCode
     * @return
     */
    Result<Void> updateMailSender(MailSenderSaveDTO mailSenderSaveDTO, String operatorCode);
}
